<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Success!</title>
    <link rel="shortcut icon" th:href="@{/img/icon.ico}">
    <!--th语法@{path}里边已经包含了工程名，并接入到[/java]或[resources/static]或[resources/templates]目录下-->
    <script th:src="@{/webjars/jquery/3.5.1/jquery.js}"></script>
    <script th:src="@{/js/md5.js}"></script>
    <script type="text/css">
        * {
            margin: 0;
            padding: 0;
        }

        li {
            list-style: none;
        }

        a {
            text-decoration: none;
        }
    </script>
</head>
<body>
<h1>Successfully!!</h1>
<input id="test" th:value="${stus.size()}" hidden="hidden">
<!--国际化-->
<table border="1">
    <tr>
        <th th:text="#{login.name}">姓名</th>
        <th>[[#{login.age}]]</th>
    </tr>
    <tr th:each="stu:${stus}">
        <td th:text="${stu.realname}">姓名</td>
        <td th:text="${stu.age}">年龄</td>
    </tr>
</table>
<a th:href="@{/success(language='zh_CN')}">中文</a>
<a th:href="@{/success(language='en_US')}">英文</a>

<div th:text="${#request.getSession().getAttribute('user').realname}"
     th:if="${#request.getSession().getAttribute('user')!=null}"></div>
<script>
    console.log($("#test").val())
    console.log('md5 加密 123456 ==> ' + hex_md5("123456"))
</script>
</body>
</html>